<template>
    <div class="menu-box">
        <h3 class="title">后台管理系统</h3>
        <el-menu
        active-text-color="#ffd04b"
        background-color="#545c64"
        class="el-menu-vertical-demo"
        :default-active="currentPath"
        text-color="#fff"
       
      >
        <el-sub-menu index="/">
          <template #title>
            <el-icon><location /></el-icon>
            <span>管理员列表</span>
          </template>
         
           
            <el-menu-item index="/admin/adminList">管理员列表</el-menu-item>
         
        
        </el-sub-menu>
        
      </el-menu>
        
    </div>
</template>

<script setup lang="ts">
import { ref} from "vue";
import { useRouter } from "vue-router";
let currentPath = ref('/')
let $router = useRouter()

</script>

<style scoped>
.menu-box {
  width: 100%;
  height: 100%;
}
.title {
    height: 50px;
    text-align: center;
    line-height: 50px;
    color: #fff;
} 
</style>